package com.atguigu.crowd.mapper.bean;

public class HardWareProtocol {
    private Integer channelId;

    private String channelName;

    private String dataType;

    private String messageType;

    private String busType;

    private Integer rtAddress;

    private Integer rtSubAddress;

    private Integer frame;

    private Integer dataLength;

    private Integer firstAddress;

    private Integer endAddress;

    public Integer getChannelId() {
        return channelId;
    }

    public void setChannelId(Integer channelId) {
        this.channelId = channelId;
    }

    public String getChannelName() {
        return channelName;
    }

    public void setChannelName(String channelName) {
        this.channelName = channelName == null ? null : channelName.trim();
    }

    public String getDataType() {
        return dataType;
    }

    public void setDataType(String dataType) {
        this.dataType = dataType == null ? null : dataType.trim();
    }

    public String getMessageType() {
        return messageType;
    }

    public void setMessageType(String messageType) {
        this.messageType = messageType == null ? null : messageType.trim();
    }

    public String getBusType() {
        return busType;
    }

    public void setBusType(String busType) {
        this.busType = busType == null ? null : busType.trim();
    }

    public Integer getRtAddress() {
        return rtAddress;
    }

    public void setRtAddress(Integer rtAddress) {
        this.rtAddress = rtAddress;
    }

    public Integer getRtSubAddress() {
        return rtSubAddress;
    }

    public void setRtSubAddress(Integer rtSubAddress) {
        this.rtSubAddress = rtSubAddress;
    }

    public Integer getFrame() {
        return frame;
    }

    public void setFrame(Integer frame) {
        this.frame = frame;
    }

    public Integer getDataLength() {
        return dataLength;
    }

    public void setDataLength(Integer dataLength) {
        this.dataLength = dataLength;
    }

    public Integer getFirstAddress() {
        return firstAddress;
    }

    public void setFirstAddress(Integer firstAddress) {
        this.firstAddress = firstAddress;
    }

    public Integer getEndAddress() {
        return endAddress;
    }

    public void setEndAddress(Integer endAddress) {
        this.endAddress = endAddress;
    }

    @Override
    public String toString() {
        return "HardWareProtocol{" +
                "channelId=" + channelId +
                ", channelName='" + channelName + '\'' +
                ", dataType='" + dataType + '\'' +
                ", messageType='" + messageType + '\'' +
                ", busType='" + busType + '\'' +
                ", rtAddress=" + rtAddress +
                ", rtSubAddress=" + rtSubAddress +
                ", frame=" + frame +
                ", dataLength=" + dataLength +
                ", firstAddress=" + firstAddress +
                ", endAddress=" + endAddress +
                '}';
    }

    public HardWareProtocol() {
    }

    public HardWareProtocol(Integer channelId, String channelName, String dataType, String messageType, String busType, Integer rtAddress, Integer rtSubAddress, Integer frame, Integer dataLength, Integer firstAddress, Integer endAddress) {
        this.channelId = channelId;
        this.channelName = channelName;
        this.dataType = dataType;
        this.messageType = messageType;
        this.busType = busType;
        this.rtAddress = rtAddress;
        this.rtSubAddress = rtSubAddress;
        this.frame = frame;
        this.dataLength = dataLength;
        this.firstAddress = firstAddress;
        this.endAddress = endAddress;
    }
}